package com.tang.common.utils;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

public class AfterMouthDate {
    public static Date getMonthDate(Date startDate, int month){
        LocalDateTime localDateTime = startDate.toInstant()
                .atZone(ZoneId.systemDefault() )
                .toLocalDateTime().plusMonths(month);
        Date date = Date.from(localDateTime.atZone( ZoneId.systemDefault()).toInstant());
        return date;
    }
}
